package com.vm.entity;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

import org.apache.commons.lang.StringUtils;


public class User  implements java.io.Serializable {

     private String userId;
     private String userName;
     private String rlGrp;
     private Timestamp ltstSignTm;
     private Integer vldMrk;
     private String userPw;
     private String arNo;
     private String fxTel;
     private String mobl;
     private String email;
     private String dtlDesc;
     private String blngOrgNo;
     private String signNm;
     private String brwsOrgNo;
     private Timestamp rnwTm;
     
     private String wellat;
     private String wellog;

     private String menuGrpId;
     /**url过滤*/
     private Map<String,String> grpUrlMap;

     /**用户所属角色ID*/
     private List<String> roleId;
     
     /**登录页面*/
     private String loginWelecom;
     
    public User() {
    }

    public User(String rlGrp, Timestamp ltstSignTm, Timestamp rnwTm) {
        this.rlGrp = rlGrp;
        this.ltstSignTm = ltstSignTm;
        this.rnwTm = rnwTm;
    }
    
    public User(String userName, String rlGrp, Timestamp ltstSignTm, Integer vldMrk, String userPw, String arNo, String fxTel, String mobl, String email, String dtlDesc, String blngOrgNo, String signNm, String brwsOrgNo, Timestamp rnwTm) {
        this.userName = userName;
        this.rlGrp = rlGrp;
        this.ltstSignTm = ltstSignTm;
        this.vldMrk = vldMrk;
        this.userPw = userPw;
        this.arNo = arNo;
        this.fxTel = fxTel;
        this.mobl = mobl;
        this.email = email;
        this.dtlDesc = dtlDesc;
        this.blngOrgNo = blngOrgNo;
        this.signNm = signNm;
        this.brwsOrgNo = brwsOrgNo;
        this.rnwTm = rnwTm;
    }
    /**
     * 是否为超级管理员
     * @return
     */
    public boolean isSuperAdmin(){
    	if(!StringUtils.isEmpty(signNm) && "admin".equals(this.signNm) && "-1".equals(this.arNo)){
    		return true;
    	}
    	return false;
    }

    public String getUserId() {
        return this.userId;
    }
    
    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return this.userName;
    }
    
    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRlGrp() {
        return this.rlGrp;
    }
    
    public void setRlGrp(String rlGrp) {
        this.rlGrp = rlGrp;
    }

    public Timestamp getLtstSignTm() {
        return this.ltstSignTm;
    }
    
    public void setLtstSignTm(Timestamp ltstSignTm) {
        this.ltstSignTm = ltstSignTm;
    }

    public Integer getVldMrk() {
        return this.vldMrk;
    }
    
    public void setVldMrk(Integer vldMrk) {
        this.vldMrk = vldMrk;
    }

    public String getUserPw() {
        return this.userPw;
    }
    
    public void setUserPw(String userPw) {
        this.userPw = userPw;
    }

    public String getArNo() {
        return this.arNo;
    }
    
    public void setArNo(String arNo) {
        this.arNo = arNo;
    }

    public String getFxTel() {
        return this.fxTel;
    }
    
    public void setFxTel(String fxTel) {
        this.fxTel = fxTel;
    }

    public String getMobl() {
        return this.mobl;
    }
    
    public void setMobl(String mobl) {
        this.mobl = mobl;
    }

    public String getEmail() {
        return this.email;
    }
    
    public void setEmail(String email) {
        this.email = email;
    }

    public String getDtlDesc() {
        return this.dtlDesc;
    }
    
    public void setDtlDesc(String dtlDesc) {
        this.dtlDesc = dtlDesc;
    }

    public String getBlngOrgNo() {
        return this.blngOrgNo;
    }
    
    public void setBlngOrgNo(String blngOrgNo) {
        this.blngOrgNo = blngOrgNo;
    }

    public String getSignNm() {
        return this.signNm;
    }
    
    public void setSignNm(String signNm) {
        this.signNm = signNm;
    }

    public String getBrwsOrgNo() {
        return this.brwsOrgNo;
    }
    
    public void setBrwsOrgNo(String brwsOrgNo) {
        this.brwsOrgNo = brwsOrgNo;
    }

    public Timestamp getRnwTm() {
        return this.rnwTm;
    }
    
    public void setRnwTm(Timestamp rnwTm) {
        this.rnwTm = rnwTm;
    }

	public String getMenuGrpId() {
		return menuGrpId;
	}

	public void setMenuGrpId(String menuGrpId) {
		this.menuGrpId = menuGrpId;
	}

	public Map<String, String> getGrpUrlMap() {
		return grpUrlMap;
	}

	public void setGrpUrlMap(Map<String, String> grpUrlMap) {
		this.grpUrlMap = grpUrlMap;
	}

	public List<String> getRoleId() {
		return roleId;
	}

	public void setRoleId(List<String> roleId) {
		this.roleId = roleId;
	}

	public String getLoginWelecom() {
		return loginWelecom;
	}

	public void setLoginWelecom(String loginWelecom) {
		this.loginWelecom = loginWelecom;
	}

	public String getWellat() {
		return wellat;
	}

	public void setWellat(String wellat) {
		this.wellat = wellat;
	}

	public String getWellog() {
		return wellog;
	}

	public void setWellog(String wellog) {
		this.wellog = wellog;
	}
}